<%@ tag pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<%@ attribute name="pageId" %>
<%@ attribute name="url" %>
<%@ attribute name="label" %>

<c:set var="active" value="${requestScope.currentPageId == pageId ? 'active' : ''}"/>
<li class="${active}">
  <a href="${pageContext.request.contextPath}${url}" class="${active}">${label}</a>
</li>
